﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;

namespace FightSever.App_Start
{
    class RouteConfig
    {
        public static void Configuration(HttpRouteCollection routes)
        {
            routes.MapHttpRoute(
              "API Default",
              "{controller}/{id}",
              new
              {
                  id = RouteParameter.Optional,
                  namespaceName = "FightSever.Controller"
              });

            routes.MapHttpRoute(
                "API action",
                "api/{controller}/{action}/{id}",
                new
                {
                    id = RouteParameter.Optional,
                    namespaceName = "FightSever.Controller"
                });
        }
    }
}
